Skip to content

Conversation

@TakaHiR07
Copy link
Contributor

Main Issue: #25081

Motivation

fix for flaky test.

Modifications

Verifying this change

  • Make sure that the change passes the CI checks.

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • The metrics
  • Anything that affects deployment

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Dec 19, 2025
logger.addAppender(appender);
@Cleanup
TestLogAppender testLogAppender =
TestLogAppender.create(Optional.of("SystemTopicBasedTopicPoliciesService"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that this would attach to the root logger since SystemTopicBasedTopicPoliciesService wouldn't be found. The logger name is the full class name.
Please improve TestLogAppender and add a .create(Class<?> loggerNameClass) method to simplify the creation. It could delegate to create(Optional.of(loggerNameClass.getName())).

Copy link
Contributor Author

@TakaHiR07 TakaHiR07 Dec 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace to TestLogAppender testLogAppender = TestLogAppender.create(Optional.of(SystemTopicBasedTopicPoliciesService.class.getName())); ?

Copy link
Member

@lhotari lhotari Dec 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would work, but please modify TestLogAppenderand add a new method there (.create(Class<?> loggerNameClass)). That way it will be cleaner. TestLogAppender can be improved in PRs when there are new use cases for improvements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-not-needed Your PR changes do not impact docs ready-to-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants